package com.xhm.bbs.pojo.dto;

import com.xhm.common.pojo.dto.AbstractDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

import static com.xhm.bbs.pojo.example.UserExample.*;

/**
 * 修改【用户】的参数
 *
 * @author mrj
 * @date 2020/01/01
 */
@ApiModel(description = "修改【用户】的参数")
public class UserUpdateDTO extends AbstractDTO {

    @ApiModelProperty(notes = N_ID,example = E_ID,required = true)
    @NotNull
    private Integer id;

    @ApiModelProperty(notes = N_USER_NAME,example = E_USER_NAME,required = true)
    @NotNull
    @Length(max = 32)
    private String userName;

    @ApiModelProperty(notes = N_AGE,example = E_AGE,required = true)
    @NotNull
    private Integer age;

    @ApiModelProperty(notes = N_ORDER_NO,example = E_ORDER_NO,required = true)
    @NotNull
    private Integer orderNo;


    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return this.userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getAge() {
        return this.age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getOrderNo() {
        return this.orderNo;
    }

    public void setOrderNo(Integer orderNo) {
        this.orderNo = orderNo;
    }


}

